/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wizard;

/**
 *
 * @author afspear
 */
public class FighterPlayer extends Player {

    public FighterPlayer(PlayerName name) {
        super(name);
        this.role = PlayerRole.runner;
    }

    @Override
    public boolean canBeCaught() {
        return true;
    }

    @Override
     public void find (Objects object){
         if (object.getType() == ObjectType.sword)
         {
             object.found(true);
             this.setPossessions(object);
             log.logAction("find", this.name.toString(), object.getType().toString());
         }
     }
}
